﻿function DoExpandingOnMouseOver(t)
{
	if (t.tagName != 'SPAN')
		return;

	t.parentNode.className += 'Over';
	event.cancelBubble = true;
}
function DoExpandingOnMouseOut(t)
{
	if (t.tagName != 'SPAN')
		return;

	var obj = t.parentNode;
	obj.className = obj.className.substr(0, obj.className.length-4);
	event.cancelBubble = true;
}

function DoDefinitionOnMouseOver(t)
{
	if (t.tagName != 'A')
		return;

	t.className += 'Over';
	event.cancelBubble = true;
}
function DoDefinitionOnMouseOut(t)
{
	if (t.tagName != 'A')
		return;

	var obj = t;
	obj.className = obj.className.substr(0, obj.className.length-4);
	event.cancelBubble = true;
}

function OnClick_Expanding(t)
{
	var obj;
	if (t.tagName == 'IMG')
		obj = t.parentNode.parentNode;
	else if (t.tagName == 'SPAN')
		obj = t.parentNode;
	else
		return;
	if (obj.childNodes[0].nodeName == '#text')
		obj = obj.childNodes[3];
	else
		obj = obj.childNodes[1];

	obj.style.display = (obj.style.display == '' ? 'none' : '');
	onresize_pnLeftBar();
	event.cancelBubble = true;
}
